const Router = require('koa-router')

const rightRouter = new Router({ prefix: '/rights' })

const {verifyAuth} = require('../middleware/authMiddleware')
const {getRightList} = require('../controller/rightController')
rightRouter.get('/:roleId',verifyAuth,getRightList)

module.exports = rightRouter